package org.ysling.litemall.db;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.ysling.litemall.db.service.LitemallQrcodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.context.web.WebAppConfiguration;

@WebAppConfiguration
@RunWith(SpringRunner.class)
@SpringBootTest
public class test {

    @Autowired
    private LitemallQrcodeService qrcodeService;
    

    @Test
    public void testGoods() {
//		LitemallQrcode insertOneByQrcode = qrcodeService.insertOneByQrcode("3254","https://www.makbk.com" ,400);	
//		System.out.println(insertOneByQrcode);
//		qrcodeService.deleteOneByQrcode("A2"+i);
//    	LitemallQrcode selectOneByQrcode = qrcodeService.selectOneByQrcode("A3");
//    	System.out.println(selectOneByQrcode);
    	
//    	List<LitemallQrcode> selectPageByQrcode = qrcodeService.selectPageByQrcode("A", 1, 3);
//    	for (LitemallQrcode litemallQrcode : selectPageByQrcode) {
//			System.out.println(litemallQrcode);
//		}
		
//		QRCodeUtil.generateQRCodeImage("https://www.makbk.com/litemall?tableno=A5", 600, "A5.png");
        
    }

}
